<template>
  <div>
    <el-container>
      <el-aside :width="$store.state.base.navCollapse?'50px':'200px'">
        <!-- <div class="logo">LOGO</div> -->
        <!-- Aside -->
        <common-aside />
      </el-aside>
      <el-container>
        <el-header>
          <common-head></common-head>
          <nav-tabs />
        </el-header>
        <el-main>
          <router-view />
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
// 引入公共组件
import CommonHead from './component/CommonHead.vue'
import CommonAside from './component/CommonAside.vue'
import NavTabs from './component/NavTabs.vue'
export default {
  name: 'AdminPage',
  components: {
    CommonAside,
    CommonHead,
    NavTabs
  }
}
</script>

<style lang="scss" scoped>
.el-container {
  height: 100vh;

  .el-aside {
    background-color: #545c64;
  }

  .el-header {
    padding: 0;
    height: 110px !important;
  }

  .el-main {
    background-color: #f0f2f5;
    border-top: 1px solid rgb(211, 211, 211);
  }
}
</style>
